package com.ws.lv.service;

import com.ws.lv.bean.Theme;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface ThemeService {
    List<Theme> selectThemeAll();

    List<Theme> selectThemeByTerm(@Param("theme_name") String theme_name, @Param("theme_state")Integer theme_state, @Param("theme_order") String theme_order);

    int insertTheme(Theme theme);

    int updateThemeDisplay(int theme_id);

    int updateThemeHide(int theme_id);

    Theme selectThemeById(int theme_id);

    int updateTheme(Theme theme);

    int deleteThemes(ArrayList<Integer> theme_ids);

    List<Theme> selectThemeByStates();
}
